createWheelEvent

abstract fun createWheelEvent(eventType: EventType, params: WheelEventParams): WheelEvent

Creates and returns a new WheelEvent object with the given eventType and params.

Return

a new WheelEvent object

Parameters

eventType

an EventType object representing a type of a valid DOM event supported by engine

params

an WheelEventParams object representing wheel event properties

Throws

if the event creation failed due to the invalid event params

when the document is closed